stackFileType
Type
property
Summary
Specifies the creator signature and file type for saved stack files.
Syntax
set the stackFileType to <creator> & <type>
Description
Use the stackFileType property to ensure that stacks that a standalone application creates are recognized by the operating system as belonging to the standalone.
When a file is saved on a Mac OS system, a 4-character file type and 4-character creator signature are saved with it. The creator signature specifies which application owns the file, and the file type is used to determine which applications (other than the owner) can work with the file.
LiveCode's creator signature is 'Revo'. The file type for a stack file created by LiveCode is 'RSTK'.
The stackFileType property is used to set the type signature|file type and creator for stack files your application creates with the save command. (To specify the file type and creator for files created by the open file command or by putting data into a file, binfile, or resfile URL that doesn't yet exist, use the fileType property instead.)
The setting of this property has no effect on Unix and Windows systems.
To avoid conflicts with other applications, register any new creator signatures with Apple Computer if you plan to distribute a stack or standalone application that uses this property.
Examples
set the stackFileType to "myapSTCK"
Related
object: stack
property: fileType
command: create stack, save, open file
glossary: property, stack file, creator signature, type signature, standalone application, command
keyword: binfile, file, URL, characters, character, resfile
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
Platforms
desktop
server